package Metier;

/**
 * *********************************************************************
 * Module: Parcours.java Author: Loick Purpose: Defines the Class Parcours
 **********************************************************************
 */
import java.util.*;

/**
 * @pdOid d8fa81ae-4243-4f6b-9c2d-29c60c9a9728
 */
public class Parcours implements Descriptable {

    public Parcours(String libelle, String texte, Integer ID_Parcours) {
        this.libelle = libelle;
        this.texte = texte;
        this.ID_Parcours = ID_Parcours;
    }

    /**
     * @pdOid 8ee3393e-f074-443d-ace9-bbc989e475e4
     */
    private String libelle;
    /**
     * @pdOid ce1c260a-89cc-41c7-afbf-170cfa3bbb63
     */
    private String texte;
    /**
     * @pdOid fa0201cd-e061-494d-ab66-9a18057e692c
     */
    private String hypertexte;
    private Integer ID_Parcours;

    public Integer getID_Parcours() {
        return ID_Parcours;
    }

    public void setID_Parcours(Integer ID_Parcours) {
        this.ID_Parcours = ID_Parcours;
    }
    /**
     * @pdRoleInfo migr=no name=Poi assc=Association_5 coll=java.util.Collection
     * impl=java.util.HashSet mult=0..* type=Aggregation
     */
    public List<POI> poi;

    public List<POI> getPoi() {
        return poi;
    }

    public void setPoi(List<POI> poi) {
        this.poi = poi;
    }

    /**
     * @pdOid 88d7caf5-da9b-4ac0-a3c6-565563b1ac76
     */
    public void ajouter() {
        // TODO: implement
    }

    /**
     * @pdOid f301caff-25f8-4ed6-acf7-f9ee5d2fa8e7
     */
    public void supprimer() {
        // TODO: implement
    }

    /**
     * @pdOid fc6e2022-99fe-4245-9af1-47da921e4737
     */
    public void modifier() {
        // TODO: implement
    }

    /**
     * @pdGenerated default setter
     * @param newPoi
     */
    public void setPoi(java.util.Collection<POI> newPoi) {
        removeAllPoi();
        for (java.util.Iterator iter = newPoi.iterator(); iter.hasNext();) {
            addPoiParcours((POI) iter.next());
        }
    }

    /**
     * @pdGenerated default add
     * @param newPoi
     */
    public void addPoiParcours(POI newPoi) {
        if (newPoi == null) {
            return;
        }
        if (!this.poi.contains(newPoi)) {
            this.poi.add(newPoi);
        }
    }

    /**
     * @pdGenerated default remove
     * @param oldPoi
     */
    public void removePoi(POI oldPoi) {
        if (oldPoi == null) {
            return;
        }
        if (this.poi != null) {
            if (this.poi.contains(oldPoi)) {
                this.poi.remove(oldPoi);
            }
        }
    }

    /**
     * @pdGenerated default removeAll
     */
    public void removeAllPoi() {
        if (poi != null) {
            poi.clear();
        }
    }

    @Override
    public String getLibelle() {
        return this.libelle;
    }

    @Override
    public List<String> getLiens() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<String> getImages() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getTexte() {
        return this.texte;
    }

    @Override
    public List<String> getReference() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setTexte(String texte) {
        this.texte = texte;
    }

    @Override
    public void setHypertexte(List<String> LienHypertextes) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<String> getHypertexte() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setImages(List<String> Images) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setReferences(List<String> References) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setLibelle(String libelle) {
        this.libelle = libelle;
    }

    @Override
    public void addImage(String image) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void addReference(String Reference) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void addLien(String Lien) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void setId(Integer id) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Integer getId() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public void getLibelle(String parcours_thematiqueLibelle) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
